package com.ucenter.server.user.pojo;

import java.io.Serializable;
import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.system.comm.model.BaseEntity;
import com.ucenter.server.user.enums.UserLogType;

/**
 * user_log实体
 * @author autoCode
 * @date 2018-02-06 15:18:19
 * @version V1.0.0
 */
@Alias("userLog")
@SuppressWarnings("serial")
@JsonInclude(Include.NON_NULL)
public class UserLog extends BaseEntity implements Serializable {
	//编号
	private String ulId;
	//用户编号
	private String userId;
	//类型[10登录、20退出、100其它]
	private Integer type;
	//描叙
	private String remark;
	//创建时间
	private Date createTime;
	
	public UserLog() {
		super();
	}
	public UserLog(UserLogType userLogType, String userId, String remark) {
		super();
		this.userId = userId;
		this.type = userLogType.getCode();
		this.remark = remark;
	}
	public String getUlId() {
		return ulId;
	}
	public void setUlId(String ulId) {
		this.ulId = ulId;
	}
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}